package com.example.demo.mapper;

import com.example.demo.entity.order;
import com.example.demo.entity.orderitem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;

@Component
@Mapper
public interface orderMapper {
    public List<order> selsectorderbyuser(String user);
    public void addorder(order order);
    public void addoerderitem(orderitem orderitem);
    public List<orderitem> selectorderitemByuser(String user);
    public List<orderitem>selectorderitemByuserandtime(String user,String time);
    public void deleteorder(List<order> order);
    public void deleteorderitem(List<orderitem> orderitem);
    public void updateorser(List<order> order);
    public void updateorser2(List<order> order);

}
